//
//  SCModuleManager.m
//  sooc-ios_new
//
//  Created by 段帅 on 16/8/18.
//  Copyright © 2016年 xuguangChao. All rights reserved.
//

#import "SCModuleManager.h"
#import "NoneController.h"



@implementation SCModuleManager

+(SC_ChildViewController *)SCModuleManagerInitWithName:(NSString *)controller {
    
    Class cls = NSClassFromString(controller);
    
    if (cls == nil) {
        NoneController *none = [[NoneController alloc]init];
//        [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:none animated:YES completion:nil];
        
        return none;
        
    }
    
    SC_ChildViewController *obj = [[cls alloc]init];
    
    return obj;
    
    
    
}




@end
